<!doctype html>
<html>
<head>
<meta charset="utf-8"/>
<title>{$head[title]}</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta content="{$head[keywords]}" name="keywords" />
<meta content="{$head[description]}" name="description" />
<base href="{SITE_URL}" />
<link href="favicon.ico" rel="shortcut icon" />
<link href="skin/style.css" rel="stylesheet" type="text/css" />
<link rel="alternate" type="application/rss+xml" title="{$head[title]}" href="/rss.php?rssid={$catid}" />
<script language="JavaScript" src="misc/config.js"></script>
<script language="JavaScript" src="misc/jquery.min.js"></script>
<script language="JavaScript" src="misc/common.js"></script>
<script language="JavaScript" src="misc/validator.js"></script>
</head>
<body>

{template 'header.html'}

<div class="container">


<form name="search" action="" method="get">

  <ul>
    <li id="search_form">
	<span id="type_all" class="selected" onClick="set_type('all')">全部</span>
    
	{loop $types $type $name}
	<span id="type_{$type}" onClick="set_type('{$type}')">{$name}</span>
	{/loop}
	</li>
    <li>
      <input type="hidden" name="module" value="search"/>
      <input type="hidden" name="type" value="all" id="type"/>
      <input type="text" name="q" size="48" id="q"/>
      <input type="submit" name="s" value="搜索" />
    </li>
	<li><strong>热门关键字:</strong>{get sql="SELECT `tag` FROM table_keyword ORDER BY hits DESC" rows="6"}<a href="javascript:$('#q').val('{$r[tag]}');void(0);">{$r['tag']}</a> {/get}</li>
  </ul>
</form>
</div>

{template 'footer.html'} 